def call() {
    pipeline {
        agent any

        stages {
            stage('Build Code') {
                steps {
                    script {
                        buildCode();
                    }
                }
            }

            stage('Analyze Code') {
                steps {
                    script {
                        analyzeCode();
                    }
                }
            }

            stage('Publish') {
                steps {
                    script {
                        publishArtifact();
                    }
                }
            }
        }
    }

}
